<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

@include_once("$g4[path]/mwcs.config.php");
include_once("$mw_cash[path]/cybercash.lib.php");

$tmp_row = sql_fetch("select mb_cash from $mw_cash[cash_table] where mb_id = '$member[mb_id]'", false);
$mw_cash[mb_cash] = $tmp_row[mb_cash];

$tmp_row = sql_fetch("select * from $mw_cash[cash_config_table] where cf_id = 1 limit 1", false);
if (is_array($tmp_row)) {
    foreach ($tmp_row as $key => $val) {
	$mw_cash[$key] = $val;
    }
}

if (!$mw_cash[mb_cash] or !$member[mb_id]) $mw_cash[mb_cash] = 0;


$is_test = false;
if ($is_admin == 'super') {
    // 관리자 테스트용 코드
    //$mw_cash[cf_pg] = "xpay";
    //$mw_cash[cf_hp] = "1";
    //$is_test = true;
    //$mw_cash[cf_paypal_dollar] = 0.00098;
}
